import request from '@/utils/request'

export function listcontractHead(query) {
  return request({
    url: '/fault/contractHead/list',
    method: 'get',
    params: query
  })
}

export function createcontractHead(data) {
  return request({
    url: '/fault/contractHead/create',
    method: 'post',
    data
  })
}

export function readcontractHead(data) {
  return request({
    url: '/fault/contractHead/get/' + data.id,
    method: 'get'
  })
}

export function updatecontractHead(data) {
  return request({
    url: '/fault/contractHead/update',
    method: 'post',
    data
  })
}

export function deletecontractHead(data) {
  return request({
    url: '/fault/contractHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
